using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmTrainingCourse")]
    public class TrainingCourse
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "TrainId", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public long TrainId { get; set; }

		[DataMember, Display(Name = "RefNo", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public string RefNo { get; set; }

		[DataMember, Display(Name = "TrainingCourseDescr", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public string TrainingCourseDescr { get; set; }

		[ForeignKey("TrainingCur")]
		[DataMember, Display(Name = "TrainingCurId", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<int> TrainingCurId { get; set; }

		[DataMember, Display(Name = "DateSignStart", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<System.DateTime> DateSignStart { get; set; }

		[DataMember, Display(Name = "DateSignEnd", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<System.DateTime> DateSignEnd { get; set; }

		[DataMember, Display(Name = "TimeSignEnd", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<System.TimeSpan> TimeSignEnd { get; set; }

		[DataMember, Display(Name = "DateTrainingStart", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<System.DateTime> DateTrainingStart { get; set; }

		[DataMember, Display(Name = "DateTrainingEnd", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<System.DateTime> DateTrainingEnd { get; set; }

		[DataMember, Display(Name = "ScheduleText", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public string ScheduleText { get; set; }

		[DataMember, Display(Name = "MaxTraineeCount", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<decimal> MaxTraineeCount { get; set; }

		[DataMember, Display(Name = "UnitPrice", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<decimal> UnitPrice { get; set; }

		[DataMember, Display(Name = "TotalScore", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<decimal> TotalScore { get; set; }

		[DataMember, Display(Name = "ScoreVeryGood", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<decimal> ScoreVeryGood { get; set; }

		[DataMember, Display(Name = "ScoreGood", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<decimal> ScoreGood { get; set; }

		[DataMember, Display(Name = "ScoreAcceptable", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<decimal> ScoreAcceptable { get; set; }

		[DataMember, Display(Name = "ScoreType", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public decimal ScoreType { get; set; }

		[ForeignKey("EmpSec")]
		[DataMember, Display(Name = "EmpSecId", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<int> EmpSecId { get; set; }

		[DataMember, Display(Name = "Closed", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<decimal> Closed { get; set; }

		[ForeignKey("ScholarFund")]
		[DataMember, Display(Name = "ScholarFundId", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<int> ScholarFundId { get; set; }

		[ForeignKey("Epc")]
		[DataMember, Display(Name = "EpcId", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<int> EpcId { get; set; }

		[ForeignKey("TrainingIns")]
		[DataMember, Display(Name = "TrainingInsId", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<int> TrainingInsId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "TotalCost", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<decimal> TotalCost { get; set; }

		[ForeignKey("Country")]
		[DataMember, Display(Name = "CountryId", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<int> CountryId { get; set; }

		[ForeignKey("TrainingGroup")]
		[DataMember, Display(Name = "TrainingGroupId", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<int> TrainingGroupId { get; set; }

		[DataMember, Display(Name = "TotalHours", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<decimal> TotalHours { get; set; }

		[DataMember, Display(Name = "OrgText", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public string OrgText { get; set; }

        [ForeignKey("MasBudgetSource")]
		[DataMember, Display(Name = "BgSourceId", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<int> BgSourceId { get; set; }

		[DataMember, Display(Name = "TotalPrice", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<decimal> TotalPrice { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public string CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public string UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.TrainingCoursesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual TrainingCurriculum TrainingCur { get; set; }

		public virtual Employee EmpSec { get; set; }

		public virtual ScholarshipFund ScholarFund { get; set; }

		public virtual ExecutivePosition Epc { get; set; }

		public virtual HRM.TrainingInstitute TrainingIns { get; set; }

		public virtual HRM.MasCountry Country { get; set; }

		public virtual TrainingGroup TrainingGroup { get; set; }

        public virtual BGM.MasBudgetSource MasBudgetSource { get; set; }

    }
}